<ion-view view-title="号码选择" name="login-view">
  <ion-nav-bar class="item-customer-bg-darkred" align-title="center">
    <ion-nav-back-button class="button-clear">
      <i class="ion-arrow-left-c font_arrow"></i>
    </ion-nav-back-button>
  </ion-nav-bar>
  <div class="tabs-striped tabs-top  tabs-background-stable">
    <div class="tabs">
      <a class="tab-item" ng-class="showTab=='tab-1'&&'tab_select'||'tab_unselect'" ng-click="selectTab('tab-1')">
      白卡
      </a>
      <a class="tab-item" ng-class="showTab=='tab-2'&&'tab_select'||'tab_unselect'"  ng-click="selectTab('tab-2')">
      成卡
      </a>
    </div>
  </div>
  <ion-content class ="ywkh_content_bg">
    <div class="" style="border-bottom: solid #ddd 1px">
      <div class="ywkh_jd">&nbsp;</div>
      <div class="ywkh_jd">&nbsp;</div>
      <div class="ywkh_jd">&nbsp;</div>
    </div>
    <p></p>
    <div style="height: 60%">
      <div class="content has-header" ng-show="showTab=='tab-1'">

        <div class="row" style="padding-right: 22px">
          <div class="col col-80 item-input" style="background-color: white;margin-left: 20px ">
            <input type="text" placeholder="输入查询的号码" ng-model="params.queryNum"></div>
          <div class="col col-20" ><button class="button bt_idcard" style="height: 32px;" ng-click="doNumRefresh()">查询</button></div>
        </div>
        <ion-nav-view style="height: 264px;margin-top: 2%">
          <ion-content>
            <ion-refresher pulling-text="下拉刷新" on-refresh="doNumRefresh()"></ion-refresher>
              <div class="item {{$index%2==0 && 'ywkh_querynum_bg_ood_cust' || 'ywkh_querynum_bg_even_cust'}}" ng-repeat="item in params.PhoneNumList" ng-class="{'ywkh_querynum_bg_sel_cust':$index==numselect}" on-tap="selectNum($index,item)">
                {{item.serialNumber}}
            </div>
            <ion-infinite-scroll ng-if="params.NummoreData" on-infinite="doNumLoadMore()" distance="5%" ></ion-infinite-scroll>

          </ion-content>
        </ion-nav-view>
      <p></p>
      </div>
      <div class="content has-header" ng-show="showTab=='tab-2'">

        <!--<div class="row" style="padding-right: 22px">
          <div class="col col-80 item-input" style="background-color: white;margin-left: 20px ">
            <input type="text" placeholder="输入查询的号码"></div>
          <div class="col col-20" ><button class="button bt_idcard" style="height: 32px;">查询</button></div>
        </div>-->
        <form name="step3Form">
        <div class="list list-inset">
          <div class="item item-input">
            <div class="font_info2 col col-25">手机号码</div>
            <div class="col col-75"><input class="ywkh_input" style="width: 91%" name="txtMobilePhone" id="txtMobilePhone" type="text" ng-blur="validMobilePhone(step3Form.txtMobilePhone.$valid)" ng-model="params.MobilePhone" ng-pattern="/^(13[0-9]|14[0-9]|15[0-9]|18[0-9])\d{8}$/i" ng-maxlength="11" required/></div>
            <!--<div class="col col-25" style="text-align: right"><button class="button bt_idcard">读取手机号</button></div>-->
          </div>
          <div class="item item-input">
            <div class="font_info2 col col-25">扫描</div>
            <div class="col col-50" ng-click="saomiao()"><input class="ywkh_input" type="text" ng-model="params.BarSimCard.text" readonly/></div>
            <div class="col col-25" style="text-align: right"><button class="button bt_idcard" ng-click="ReadIccid()">扫描SIM卡</button></div>
          </div>
        </div>
        </form>
      </div>
    </div>
    <div class="row" ng-class="showTab=='tab-1'&&'footpanel'||'footpanel2'">
      <div class="col">
        <a class="button button-full wkh_button_dark" ng-href="#ywkh/step2">上一步</a>
      </div>
      <div class="col">
        <a class="button button-full wkh_button_light" ng-disabled="!params.step3==1" ng-href="#ywkh/step3_2">下一步</a>
      </div>
    </div>
  </ion-content>
</ion-view>
